//7 Segment arrays
int positions[] = {
  seg1, seg2, seg3, seg4};
int segments[] = {
  segA, segB, segC, segD, segE, segF, segG};

//7 segment Codes  a  b  c  d  e  f  g
bool disNumbers[][7] = {
  {
    1, 1, 1, 1, 1, 1, 0  }
  , //0
  {
    0, 1, 1, 0, 0, 0, 0  }
  , //1
  {
    1, 1, 0, 1, 1, 0, 1  }
  , //2
  {
    1, 1, 1, 1, 0, 0, 1  }
  , //3
  {
    0, 1, 1, 0, 0, 1, 1  }
  , //4
  {
    1, 0, 1, 1, 0, 1, 1  }
  , //5
  {
    1, 0, 1, 1, 1, 1, 1  }
  , //6
  {
    1, 1, 1, 0, 0, 0, 0  }
  , //7
  {
    1, 1, 1, 1, 1, 1, 1  }
  , //8
  {
    1, 1, 1, 0, 0, 1, 1  }
  , //9
};

           //            a  b  c  d  e  f  g
bool disLetters[][7] = {{0, 0, 0, 0, 0, 0, 0}, //space
                        {1, 1, 1, 0, 1, 1, 1}, //a
                        {0, 0, 1, 1, 1, 1, 1}, //b
                        {0, 0, 0, 1, 1, 0, 1}, //c
                        {0, 1, 1, 1, 1, 0, 1}, //d
                        {1, 0, 0, 1, 1, 1, 1}, //e
                        {1, 0, 0, 0, 1, 1, 1}, //f
                        {1, 1, 1, 1, 0, 1, 1}, //g
                        {0, 0, 1, 0, 1, 1, 1}, //h
                        {0, 0, 0, 0, 1, 1, 0}, //i
                        {0, 1, 1, 1, 0, 0, 0}, //j
                        {0, 1, 1, 0, 1, 1, 1}, //k
                        {0, 0, 0, 0, 1, 1, 0}, //l
                        {0, 0, 1, 0, 1, 0, 1}, //m
                        {0, 0, 1, 0, 1, 0, 1}, //n
                        {0, 0, 1, 1, 1, 0, 1}, //o
                        {1, 1, 0, 0, 1, 1, 1}, //p
                        {1, 1, 1, 0, 0, 1, 1}, //q
                        {0, 0, 0, 0, 1, 0, 1}, //r
                        {1, 0, 1, 1, 0, 1, 1}, //s
                        {0, 0, 0, 1, 1, 1, 1}, //t
                        {0, 0, 1, 1, 1, 0, 0}, //u
                        {0, 0, 1, 1, 1, 0, 0}, //v
                        {0, 0, 1, 1, 1, 0, 0}, //w
                        {0, 1, 1, 0, 1, 1, 1}, //x
                        {0, 1, 1, 1, 0, 1, 1}, //y
                        {1, 1, 0, 1, 1, 0, 1}, //z
};

